<?php

declare(strict_types=1);

namespace App\Entity;

use App\Models\Advert;

/**
 * Class AdvertEntity
 */
class AdvertEntity extends ABaseEntity
{
    public function __construct(Advert $model)
    {
        $this->model = $model;
    }

    /**
     * @return int
     */
    public function getId()
    {
        return $this->model->id;
    }

    /**
     * @return int
     */
    public function getCityId()
    {
        return $this->model->city_id;
    }

    /**
     * @return int
     */
    public function getPositionId()
    {
        return $this->model->position_id;
    }

    /**
     * @return int
     */
    public function getStatus()
    {
        return $this->model->status;
    }

    /**
     * @return string
     */
    public function getCreatedAt()
    {
        return $this->model->create_at;
    }

    /**
     * @return string
     */
    public function getUpdatedAt()
    {
        return $this->model->update_at;
    }
}
